const {DataTypes} = require('sequelize');

/* 创建数据库连接 */
const db = require('../config/db')

/* 数据库模型名称配置及路径 */
module.exports = {
    Class: require('./class')(db, DataTypes),
    ClassCourse: require('./class_course.js')(db, DataTypes),
    College: require('./college.js')(db, DataTypes),
    Course: require('./course.js')(db, DataTypes),
    Student: require('./student.js')(db, DataTypes),
    StuTask: require('./stu_task.js')(db, DataTypes),
    Teacher: require('./teacher.js')(db, DataTypes),
    TeaTask: require('./tea_task.js')(db, DataTypes)
}